(compilation-error-regexp-alist):
authorRichard M. Stallman <rms@gnu.org>
Fri, 10 May 2002 01:00:07 +0000 (01:00 +0000)
committerRichard M. Stallman <rms@gnu.org>
Fri, 10 May 2002 01:00:07 +0000 (01:00 +0000)
New element to recognize Python error messages.

lisp/progmodes/compile.el

index c1f8b9b345afe716317c0e2020070258625cb6be..689c095f521175d67cb49f4b82e257e38a75ef0a 100644 (file)
@@ -363,6 +363,10 @@ of[ \t]+\"?\\([a-zA-Z]?:?[^\":\n]+\\)\"?:" 3 2)
     (".*\"\\([^,\" \n\t]+\\)\", lines? \
 \\([0-9]+\\)\\([\(.]\\([0-9]+\\)\)?\\)?[:., (-]" 1 2 4)
 
+    ;; Python:
+    ;;  File "foobar.py", line 5, blah blah
+   ("^File \"\\([^,\" \n\t]+\\)\", line \\([0-9]+\\)," 1 2)
+
     ;; Caml compiler:
     ;;  File "foobar.ml", lines 5-8, characters 20-155: blah blah
    ("^File \"\\([^,\" \n\t]+\\)\", lines? \\([0-9]+\\)[-0-9]*, characters? \\([0-9]+\\)" 1 2 3)